import Layout from '@/layout'

export default {
  path: '/car',
  component: Layout,
  meta: {
    title: '车辆管理',
    icon: 'el-icon-truck'
  },
  children: [
    {
      path: 'type',
      meta: {
        title: '车型管理'
      },
      component: () => import('@/views/car/type')
    },
    {
      path: 'list',
      meta: {
        title: '车辆列表'
      },
      component: () => import('@/views/car/list')
    },
    {
      path: 'detail',
      meta: {
        title: '车辆详情',
        backHeader: true
      },
      hidden: true,
      component: () => import('@/views/car/list/detail.vue')
    },
    {
      path: 'back',
      meta: {
        title: '回车登记'
      },
      component: () => import('@/views/car/back')
    },
    {
      path: 'info',
      meta: {
        title: '返回页面',
        backHeader: true
      },
      hidden: true,
      component: () => import('@/views/car/back/info')
    }
  ]
}
